package com.kimehwa.studyboot.service;

import java.util.concurrent.TimeUnit;

/**
 * @author xiaodongguan
 * @since 2021-07-15 10:34
 */
public interface RedisService {
    void pushQueue(String queue,Object obj);

    /**
     * 从队列中取出来消息
     */
    Object popQueue(String queue, long timeout, TimeUnit timeUnit);
}
